package com.javasm.mingming.adminuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (AdminRole)表实体类
 *
 * @author makejava
 * @since 2025-01-15 09:52:44
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminRole extends Model<AdminRole> {
    @TableId(type = IdType.AUTO)
    private Integer rid;
    
    private String name;
    
    private String code;
    //角色和菜单 一对多
    @TableField(exist = false)
    private List<AdminMenu> menuList;

}

